﻿using System;
using System.Collections.Generic;
using System.Data;
using BrnMall.Core;

namespace QIDong.WeApp.Models
{

    /// <summary>
    /// 用户信息模型类
    /// </summary>
    public class UserInfoModel
    {
        /// <summary>
        /// 用户信息
        /// </summary>
        public UserInfo UserInfo { get; set; }
        /// <summary>
        /// 用户等级信息
        /// </summary>
        public UserRankInfo UserRankInfo { get; set; }
        /// <summary>
        /// 区域
        /// </summary>
        public RegionInfo RegionInfo { get; set; }
    }
    /// <summary>
    /// 编辑用户信息
    /// </summary>
    public class EditUserDto
    {
        /// <summary>
        /// 用户编号
        /// </summary>
        public int Uid { get; set; }

        
        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string RealName { get; set; }
        /// <summary>
        /// 性别0:未知，1:男，2:女
        /// </summary>
        public int Gender { get; set; }
        /// <summary>
        /// 身份证编号
        /// </summary>
        public string IdCard { get; set; }
        /// <summary>
        /// 出生日期
        /// </summary>
        public string BDay { get; set; }
        /// <summary>
        /// 区域ID
        /// </summary>
        public int RegionId { get; set; }
        /// <summary>
        /// 详细地址信息
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 个人简介
        /// </summary>
        public string Bio { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string Mobile { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 公司
        /// </summary>
        public string Company { get; set; }
        /// <summary>
        /// 职位
        /// </summary>
        public string JobTitle { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        public EditUserDto()
        {
            Uid = 0;
            NickName = RealName = IdCard = Address = Bio =Email=Company=JobTitle= string.Empty;
            Gender = RegionId = 0;
        }
    }
    /// <summary>
    /// 支付积分日志列表模型类
    /// </summary>
    public class PayCreditLogListModel
    {
        /// <summary>
        /// 分页对象
        /// </summary>
        public PageModel PageModel { get; set; }
        /// <summary>
        /// 列表类型
        /// </summary>
        public int ListType { get; set; }
        /// <summary>
        /// 支付积分日志列表
        /// </summary>
        public List<CreditLogInfo> PayCreditLogList { get; set; }
    }

    /// <summary>
    /// 优惠劵列表模型类
    /// </summary>
    public class CouponListModel
    {
        /// <summary>
        /// 列表类型
        /// </summary>
        public int ListType { get; set; }
        /// <summary>
        /// 优惠劵列表
        /// </summary>
        public DataTable CouponList { get; set; }
    }

    public class DybLoginModel
    {
        public string Message { get; set; }
    }
    /// <summary>
    /// 预约申请
    /// </summary>
    public class AppointApplyInputDto
    {
        /// <summary>
        /// 提交人
        /// </summary>
        public int Uid { get; set; }
        /// <summary>
        /// 预约产品
        /// </summary>
        public int Pid { get; set; }
        /// <summary>
        /// 预约时间
        /// </summary>
        public DateTime ApplyTime { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string RealName { get; set; }
        /// <summary>
        /// 联系方式
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 预约类型0：商品预约，1：餐位预约
        /// </summary>
        public int AppointType { get; set; } = 0;
        /// <summary>
        /// 餐位类型ID
        /// </summary>
        public int DiningTableTypeId { get; set; } = 0;
        /// <summary>
        /// 餐位类型ID
        /// </summary>
        public string DiningTableTypeName { get; set; } = "";
        /// <summary>
        /// 就餐人数
        /// </summary>
        public string DiningTableUserTotal { get; set; } = "";

        /// <summary>
        /// 默认值
        /// </summary>
        public AppointApplyInputDto()
        {
            Pid = 0;
            ApplyTime=DateTime.Now;
            Remark = "";
        }

    }
    /// <summary>
    /// 预约申请
    /// </summary>
    public class AppointApplyOutDto
    {
        public int AId { get; set; }
        public int Uid { get; set; }
        public int StoreId { get; set; }

        /// <summary>
        /// 预约时间
        /// </summary>
        public DateTime ApplyTime { get; set; }
        /// <summary>
        /// 产品ID
        /// </summary>
        public int Pid { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string PName { get; set; }
        /// <summary>
        /// 产品图片
        /// </summary>
        public string PShowImg { get; set; }
        /// <summary>
        /// 预约状态0，待确认，1：已取消，2：已确认，3：被拒绝
        /// </summary>
        public string Status { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string RealName { get; set; }
        /// <summary>
        /// 联系方式
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 预约类型0：商品预约，1：餐位预约
        /// </summary>
        public int AppointType { get; set; } = 0;
        /// <summary>
        /// 餐位类型ID
        /// </summary>
        public int DiningTableTypeId { get; set; } = 0;
        /// <summary>
        /// 餐位类型ID
        /// </summary>
        public string DiningTableTypeName { get; set; } = "";
        /// <summary>
        /// 就餐人数
        /// </summary>
        public string DiningTableUserTotal { get; set; } = "";
    }
    /// <summary>
    /// 用户订单
    /// </summary>
    public class UserOrders
    {
        public PageModel PageModel { get; set; }
        public List<OrderModel> OrderList { get; set; }
    }

    public class OrderStatistics
    {
        public int count_id_no_pay { get; set; }
        public int count_id_no_transfer { get; set; }
        public int count_id_no_confirm { get; set; }
        public int count_id_success { get; set; }
    }
}
